x86: zImage: Move subarch assignment out of cmd_line check
authorAndy Shevchenko <[email protected]>
Wed, 10 Jan 2018 17:40:14 +0000 (19:40 +0200)
committerBin Meng <[email protected]>
Tue, 30 Jan 2018 06:29:07 +0000 (14:29 +0800)
commit378960d8c2c72c5b6be2a6cd7787cab8c3ba5abc
tree5b407110626cadb5a861d3ca5d9435ccf292157f
parent7b36dbdec725d507e4af64eb06a166be82e51324
x86: zImage: Move subarch assignment out of cmd_line check

The commit

  20bfac0599bd ("x86: zImage: add Intel MID platforms support")

introduced an assignment of subarch field in boot parameters, though
missed the right place of doing that. It doesn't matter if we have or
not a kernel command line supplied, we just set that field. Although
guard it by protocol version which supports it.

Fixes: 20bfac0599bd ("x86: zImage: add Intel MID platforms support")
Cc: Vincent Tinelli <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
arch/x86/lib/zimage.c